package org.co.service.impl;

import org.apache.ibatis.session.SqlSession;
import org.co.mapper.StudentMapper;
import org.co.model.Student;
import org.co.utils.MybatisUtils;

import java.util.List;

public class SelectStudentByAgeImpl {
    static SqlSession sqlSession;

    static {
        sqlSession = MybatisUtils.getSqlSession();
    }
    
    public List<Student> selectStudentByAge(Integer age) {
        return sqlSession.getMapper(StudentMapper.class).selectStudentByAge(age);
    }
}
